package java6681.lesson13;

public class Exception6681_2 {
    public static void main(String[] args){
        try{
            int[] a=new int[]{101,201,301,401};
            int at=Integer.parseInt(args[0]);
            System.out.println("第"+at+"个元素="+a[at-1]);
        }catch (IllegalArgumentException e){
            System.out.println("数据格式不对:"+e.getMessage());
        }catch (Exception e){
            System.out.println("数组下标超界:"+e);
        }



        System.out.println("**********Exception6681_2主方法结束！**********");
    }

}
